

---------------------------------------------------------------------------------------------------------------------
----- 示例食物
    local hutao_cooked_food_excample = {
        test = function(cooker, names, tags)
            return (names.ice and names.ice >= 2) 
            and (tags.veggie and tags.veggie >=2)
        end,
        name = "hutao_cooked_food_excample", -- 料理名
        weight = 10, -- 食谱权重
        priority = 999, -- 食谱优先级
        foodtype = GLOBAL.FOODTYPE.GOODIES, --料理的食物类型
        hunger = 150, --吃后回饥饿值
        sanity = 30, --吃后回精神值
        health = 20, --吃后回血值
        stacksize = 1,  --- 每次烹饪得到个数
        perishtime = TUNING.PERISH_TWO_DAY*5, --腐烂时间
        cooktime = TUNING.HUTAO_MOD___DEBUGGING_MODE and 1/4 or 30/20, --烹饪时间(单位20s :  数字1 为 20s ,)
        potlevel = "low",  --- 锅里的贴图位置 low high  mid
        cookbook_tex = "hutao_cooked_food_excample.tex", -- 在游戏内食谱书里的mod食物那一栏里显示的图标，tex在 atlas的xml里定义了，所以这里只写文件名即可
        cookbook_atlas = "images/inventoryimages/hutao_cooked_food_excample.xml",  
        overridebuild = "hutao_cooked_food_excample",          ----- build (zip名字)
        overridesymbolname = "png",     ----- scml 的图层名字（图片所在的文件夹名）
        floater = {"med", nil, 0.55},
        oneat_desc = "暂时没发现副作用",    --- 副作用一栏显示的文本
        cookbook_category = "portablecookpot"
        -- temperature = TUNING.HOT_FOOD_BONUS_TEMP,          -- 这个是作用升温和降温的没试过数字行不行带HOT就是升温 COLD就是降温
        -- temperatureduration = TUNING.FOOD_TEMP_LONG,     -- 这个是升温或者降温持续时间
    }
    if TUNING.HUTAO_DEBUGGING_MODE then
        AddCookerRecipe("cookpot", hutao_cooked_food_excample) -- 将食谱添加进普通锅
        AddCookerRecipe("portablecookpot", hutao_cooked_food_excample) -- 将食谱添加进便携锅(大厨锅)
        AddCookerRecipe("archive_cookpot", hutao_cooked_food_excample) --档案馆远古窑，有好多mod作者忽略了这口锅
    end
---------------------------------------------------------------------------------------------------------------------
--[[  梅菜扣肉：
        配方：含有梅花，菜度至少1.5，肉度至少2，不能有怪物度，优先度30，烹饪时间77秒，堆叠7，保质期14天
        效果：+77饱度，+154HP。
    ]]
    local hutao_cooked_food_braised_pork_belly_with_preserved_vegetable = {
        test = function(cooker, names, tags)
            return 
            (names.hutao_item_plum_blossom_petal and names.hutao_item_plum_blossom_petal > 0)   --- 含有梅花
            and (tags.veggie and tags.veggie >=1.5) --- 菜度至少1.5
            and (tags.meat and tags.meat >=2)       --- 肉度至少2
            and (tags.monster == nil or tags.monster == 0) --- 不能有怪物度
        end,
        name = "hutao_cooked_food_braised_pork_belly_with_preserved_vegetable", -- 料理名
        weight = 10, -- 食谱权重
        priority = 30, -- 食谱优先级
        foodtype = GLOBAL.FOODTYPE.MEAT, --料理的食物类型
        hunger = 77, --吃后回饥饿值
        sanity = 0, --吃后回精神值
        health = 154, --吃后回血值
        stacksize = 7,  --- 每次烹饪得到个数
        perishtime = TUNING.PERISH_TWO_DAY*7, --腐烂时间
        cooktime = TUNING.HUTAO_MOD___DEBUGGING_MODE and 1/4 or 77/20, --烹饪时间(单位20s :  数字1 为 20s ,)
        potlevel = "low",  --- 锅里的贴图位置 low high  mid
        cookbook_tex = "hutao_cooked_food_braised_pork_belly_with_preserved_vegetable.tex", -- 在游戏内食谱书里的mod食物那一栏里显示的图标，tex在 atlas的xml里定义了，所以这里只写文件名即可
        cookbook_atlas = "images/inventoryimages/hutao_cooked_food_braised_pork_belly_with_preserved_vegetable.xml",  
        overridebuild = "hutao_cooked_food_braised_pork_belly_with_preserved_vegetable",          ----- build (zip名字)
        overridesymbolname = "png",     ----- scml 的图层名字（图片所在的文件夹名）
        floater = {"med", nil, 0.55},
        oneat_desc = "暂时没发现副作用",    --- 副作用一栏显示的文本
        cookbook_category = "portablecookpot"
        -- temperature = TUNING.HOT_FOOD_BONUS_TEMP,          -- 这个是作用升温和降温的没试过数字行不行带HOT就是升温 COLD就是降温
        -- temperatureduration = TUNING.FOOD_TEMP_LONG,     -- 这个是升温或者降温持续时间
    }

    AddCookerRecipe("cookpot", hutao_cooked_food_braised_pork_belly_with_preserved_vegetable) -- 将食谱添加进普通锅
    AddCookerRecipe("portablecookpot", hutao_cooked_food_braised_pork_belly_with_preserved_vegetable) -- 将食谱添加进便携锅(大厨锅)
    AddCookerRecipe("archive_cookpot", hutao_cooked_food_braised_pork_belly_with_preserved_vegetable) --档案馆远古窑，有好多mod作者忽略了这口锅
    
---------------------------------------------------------------------------------------------------------------------
--[[  梅花酿：
    配方：含有梅花，冰，至少0.5糖度，不能有树枝，肉，蛋，优先度30，烹饪时间154秒，最大堆叠7
    效果：是一种酒，保质期14天，放在地上腐烂速度为2倍。可以放入乾坤泰卦帽，不能放进盐盒。
    饮用后-7饱度，+14san，+14HP，增加一层“酗酒”。
    ]]
    local hutao_cooked_food_plum_blossom_wine = {
        test = function(cooker, names, tags)
            return 
            (names.hutao_item_plum_blossom_petal and names.hutao_item_plum_blossom_petal > 0)   --- 含有梅花
            and (names.ice and names.ice > 0)   --- 含有水
            and (tags.sweetener and tags.sweetener >=0.5) --- 0.5 糖度
            and (tags.meat or 0) + (tags.egg or 0) + (tags.fish or 0) + (tags.inedible or 0) == 0
        end,
        name = "hutao_cooked_food_plum_blossom_wine", -- 料理名
        weight = 10, -- 食谱权重
        priority = 30, -- 食谱优先级
        foodtype = GLOBAL.FOODTYPE.GOODIES, --料理的食物类型
        hunger = -7, --吃后回饥饿值
        sanity = 14, --吃后回精神值
        health = 14, --吃后回血值
        stacksize = 7,  --- 每次烹饪得到个数
        perishtime = TUNING.PERISH_TWO_DAY*7, --腐烂时间
        cooktime = TUNING.HUTAO_MOD___DEBUGGING_MODE and 1/4 or 154/20, --烹饪时间(单位20s :  数字1 为 20s ,)
        potlevel = "low",  --- 锅里的贴图位置 low high  mid
        cookbook_tex = "hutao_cooked_food_plum_blossom_wine.tex", -- 在游戏内食谱书里的mod食物那一栏里显示的图标，tex在 atlas的xml里定义了，所以这里只写文件名即可
        cookbook_atlas = "images/inventoryimages/hutao_cooked_food_plum_blossom_wine.xml",  
        overridebuild = "hutao_cooked_food_plum_blossom_wine",          ----- build (zip名字)
        overridesymbolname = "png",     ----- scml 的图层名字（图片所在的文件夹名）
        floater = {"med", nil, 0.55},
        oneat_desc = "暂时没发现副作用",    --- 副作用一栏显示的文本
        cookbook_category = "portablecookpot"
        -- temperature = TUNING.HOT_FOOD_BONUS_TEMP,          -- 这个是作用升温和降温的没试过数字行不行带HOT就是升温 COLD就是降温
        -- temperatureduration = TUNING.FOOD_TEMP_LONG,     -- 这个是升温或者降温持续时间
    }

    AddCookerRecipe("cookpot", hutao_cooked_food_plum_blossom_wine) -- 将食谱添加进普通锅
    AddCookerRecipe("portablecookpot", hutao_cooked_food_plum_blossom_wine) -- 将食谱添加进便携锅(大厨锅)
    AddCookerRecipe("archive_cookpot", hutao_cooked_food_plum_blossom_wine) --档案馆远古窑，有好多mod作者忽略了这口锅
    
---------------------------------------------------------------------------------------------------------------------
--[[  素鲍鱼：
    配方：红蘑菇+蓝蘑菇+绿蘑菇+至少0.5鱼度，优先度20，烹饪时间20秒
    效果：+15饱度，+40血，+20san，保质期10天，堆叠20
    ]]
    local hutao_cooked_food_vegetarian_abalone = {
        test = function(cooker, names, tags)
            return 
            (names.red_cap or 0) + (names.red_cap_cooked or 0) >= 1
            and (names.blue_cap or 0) + (names.blue_cap_cooked or 0) >= 1
            and (names.green_cap or 0) + (names.green_cap_cooked or 0) >= 1
            and (tags.fish and tags.fish >=0.5)
        end,
        name = "hutao_cooked_food_vegetarian_abalone", -- 料理名
        weight = 10, -- 食谱权重
        priority = 20, -- 食谱优先级
        foodtype = GLOBAL.FOODTYPE.GOODIES, --料理的食物类型
        hunger = 15, --吃后回饥饿值
        sanity = 20, --吃后回精神值
        health = 40, --吃后回血值
        stacksize = 20,  --- 每次烹饪得到个数
        perishtime = TUNING.PERISH_TWO_DAY*5, --腐烂时间
        cooktime = TUNING.HUTAO_MOD___DEBUGGING_MODE and 1/4 or 20/20, --烹饪时间(单位20s :  数字1 为 20s ,)
        potlevel = "low",  --- 锅里的贴图位置 low high  mid
        cookbook_tex = "hutao_cooked_food_vegetarian_abalone.tex", -- 在游戏内食谱书里的mod食物那一栏里显示的图标，tex在 atlas的xml里定义了，所以这里只写文件名即可
        cookbook_atlas = "images/inventoryimages/hutao_cooked_food_vegetarian_abalone.xml",  
        overridebuild = "hutao_cooked_food_vegetarian_abalone",          ----- build (zip名字)
        overridesymbolname = "png",     ----- scml 的图层名字（图片所在的文件夹名）
        floater = {"med", nil, 0.55},
        oneat_desc = "暂时没发现副作用",    --- 副作用一栏显示的文本
        cookbook_category = "portablecookpot"
        -- temperature = TUNING.HOT_FOOD_BONUS_TEMP,          -- 这个是作用升温和降温的没试过数字行不行带HOT就是升温 COLD就是降温
        -- temperatureduration = TUNING.FOOD_TEMP_LONG,     -- 这个是升温或者降温持续时间
    }

    AddCookerRecipe("cookpot", hutao_cooked_food_vegetarian_abalone) -- 将食谱添加进普通锅
    AddCookerRecipe("portablecookpot", hutao_cooked_food_vegetarian_abalone) -- 将食谱添加进便携锅(大厨锅)
    AddCookerRecipe("archive_cookpot", hutao_cooked_food_vegetarian_abalone) --档案馆远古窑，有好多mod作者忽略了这口锅
    
---------------------------------------------------------------------------------------------------------------------
--[[  幽幽大行军 【Ghostly March 】：
    只能通过素鲍鱼附带或厨房的奇思妙想随机生成。
    效果：+7饱度，+77血，+49san，保质期777天，堆叠10，
    放在地上7秒后会自动转化为耐久为1次使用的【幽幽太行君】。
    ]]
    local hutao_cooked_food_ghostly_march = {
        test = function(cooker, names, tags)
            return false
        end,
        name = "hutao_cooked_food_ghostly_march", -- 料理名
        weight = 10, -- 食谱权重
        priority = 20, -- 食谱优先级
        foodtype = GLOBAL.FOODTYPE.GOODIES, --料理的食物类型
        hunger = 7, --吃后回饥饿值
        sanity = 49, --吃后回精神值
        health = 77, --吃后回血值
        stacksize = 10,  --- 每次烹饪得到个数
        perishtime = TUNING.PERISH_TWO_DAY/2*777, --腐烂时间
        cooktime = TUNING.HUTAO_MOD___DEBUGGING_MODE and 1/4 or 20/20, --烹饪时间(单位20s :  数字1 为 20s ,)
        potlevel = "low",  --- 锅里的贴图位置 low high  mid
        cookbook_tex = "hutao_cooked_food_ghostly_march.tex", -- 在游戏内食谱书里的mod食物那一栏里显示的图标，tex在 atlas的xml里定义了，所以这里只写文件名即可
        cookbook_atlas = "images/inventoryimages/hutao_cooked_food_ghostly_march.xml",  
        overridebuild = "hutao_cooked_food_ghostly_march",          ----- build (zip名字)
        overridesymbolname = "png",     ----- scml 的图层名字（图片所在的文件夹名）
        floater = {"med", nil, 0.55},
        oneat_desc = "暂时没发现副作用",    --- 副作用一栏显示的文本
        cookbook_category = "portablecookpot"
        -- temperature = TUNING.HOT_FOOD_BONUS_TEMP,          -- 这个是作用升温和降温的没试过数字行不行带HOT就是升温 COLD就是降温
        -- temperatureduration = TUNING.FOOD_TEMP_LONG,     -- 这个是升温或者降温持续时间
    }

    AddCookerRecipe("cookpot", hutao_cooked_food_ghostly_march) -- 将食谱添加进普通锅
    AddCookerRecipe("portablecookpot", hutao_cooked_food_ghostly_march) -- 将食谱添加进便携锅(大厨锅)
    AddCookerRecipe("archive_cookpot", hutao_cooked_food_ghostly_march) --档案馆远古窑，有好多mod作者忽略了这口锅
    
---------------------------------------------------------------------------------------------------------------------